<h1 style="color:#FF3300;"><?php echo $hotel['name']." - ".$hotel['provide'] ?></h1><input type="button" onclick="location.assign('<?php echo base_url(); ?>admin/hotelbanner/edit?hotelid=<?php echo $_GET['hotelid']?>');" value="Insert" style="float:right;margin-right:10px;margin-bottom:5px;"/>
<table>
	<tr>
    	<th>STT</th>
        <th>Avatar</th>
        <th>Status</th>
        <th>Edit / Del</th>
    </tr>
    <?php if(count($data)>0){
			foreach($data as $k=>$list){?>
			<tr>
    	<th><?php echo $k+1 ?></th>
        <td><img src="<?php echo base_url()."/uploads/hotelbanner/".$list['avatar'] ?>" width="200"/></td>
        <th><select name="changestatus" onChange="location.assign('<?php echo base_url(); ?>admin/hotelbanner/changestatus?hotelid=<?php echo $_GET["hotelid"] ?>&id=<?php echo $list["id"] ?>&status='+this.options[this.selectedIndex].value);"><option value="0" <?php if($list['status']==0) echo "selected disabled";?>>Highlights</option><option value="1" <?php if($list['status']==1) echo "selected disabled";?>>Normal</option><option value="2" <?php if($list['status']==2) echo "selected disabled";?>>Hide</option></select></th>
        <th><a href="<?php echo base_url(); ?>admin/hotelbanner/edit?hotelid=<?php echo $_GET['hotelid'] ?>&id=<?php echo $list['id'] ?>"><img src="<?php echo base_url(); ?>public/admin/img/icons/user_edit.png"/></a> / <a href="javascript:void(0);" onClick="if(confirm('Do you want to Del this Information ?')) location.assign('<?php echo base_url(); ?>admin/hotelbanner/delete?hotelid=<?php echo $_GET["hotelid"]; ?>&id=<?php echo $list["id"]; ?>');"><img src="<?php echo base_url(); ?>public/admin/img/icons/user_delete.png"/></a></th>
    </tr>
			<?php }
		}?>    
</table>